<template>
	<web-view :src="url"></web-view>
</template>

<script>
	export default {
		data() {
			return {
				url:'',
			}
		},
		onLoad() {
			this.getBaseInfo();
		},
		methods: {
			getBaseInfo(){
				this.$u.http.post('/api/index/defInfo', {
					type:'base_info'
				}).then(({ data }) => {
					this.url = data.url||''
					
				}).catch(v => {
					
				});
			},
			Back(){
				uni.navigateBack({
				});
			}
		}
	}
</script>

<style lang="scss">
	.u-wrap {
		height: calc(100vh);
		/* #ifdef H5 */
		height: calc(100vh - var(--window-top) - 50px);
		/* #endif */
		display: flex;
		flex-direction: column;
	}
	.main{
		width: 100%;
		flex: 1;
		display: flex;
		// overflow: hidden;
		background-color: #FFFFFF;
		image{
			width: 100%;
			height: 100%;
			/* #ifdef H5 */
			height: calc(100vh - var(--window-top) - 50px);
			/* #endif */
		}
	}
</style>
